package com.example.librarymanagementproject2.service;

import com.example.librarymanagementproject2.model.entity.BorrowRecord;

/**
 * @InterfaceName BorrowRecordService
 * @Description TODO
 * @Author Kx
 * @Date 2025/10/28 19:17
 * @Version 1.0
 */
public interface BorrowRecordService {

    /**
     * @author: kx
     * @date: 2025/10/28 9:57
     * @param borrowRecord: 借阅记录信息
     * @description: 借阅图书
     */
    void checkoutBook(BorrowRecord borrowRecord);

    /**
     * @author: kx
     * @date: 2025/10/28 19:20
     * @param borrowRecordId : 借阅记录id
     * @description: 处理图书归还
    */
    void processBookReturn(Long borrowRecordId);

    /**
     * @author: kx
     * @date: 2025/10/29 11:14
     * @param verifyCode : 验证码
     * @param userId : 用户ID
     * @description: 验证码校验并修改借阅状态
    */
    void verifyCodeAndUpdateStatus(String verifyCode, Long userId);
}
